<template>
  <div class="account-balance">
    <h2>账户余额</h2>
    <p>当前余额: ¥{{ 55700 }}</p>
    <router-link to="/transaction" class="view-transactions">查看收支明细</router-link>
  </div>
</template>

<script>
export default {
  name: 'AccountBalance',
  data() {
    return {
      // 这里的余额应该从后端获取
      balance: 5000.00,
    };
  },
};
</script>

<style scoped>
.account-balance {
  text-align: center;
}
.view-transactions {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 10px;
  background-color: #3847b2;
  color: white;
  text-decoration: none;
  border-radius: 3px;
}
</style>